package com.example.security.auth;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * @className: User
 * @author: YTF
 * @date: 2025/4/30 11:17
 * @description:
 */
@Data
@TableName("`users`")
public class Users {
    @TableId(value = "username", type = IdType.INPUT)  // username 是主键且非自增
    private String username;
    private String password;
    private Boolean enabled;
    private String phone;

    @TableField(exist = false)
    private List<String> authorities;
}